<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib prefix="s" uri="/struts-tags"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Admin Email System</title>
</head>
<body>
<s:if test="#session.client != null && #session.client.role == 'ADMIN'">




	<h3>Admin Bulk Email system</h3>
	<s:form action="sendbulkmail" theme="simple">
		<table border="0" cellpadding="10" cellspacing="0" width="100%">
			<tr>
				<td colspan="2">
				<s:actionerror cssStyle="background-color:maroon; color:white;padding:5px; font-size:18px;"/>
				</td>
			</tr>
			<tr>
				<td>To:</td>
				<td><s:fielderror fieldName="to" /> <s:textarea name="to"
					rows="5" cols="60"></s:textarea></td>
			</tr>
			<tr>
				<td>From:</td>
				<td><s:fielderror fieldName="from" /><s:textarea name="from"
					cols="60" ></s:textarea></td>
			</tr>
			<tr>
				<td>CC:</td>
				<td><s:fielderror fieldName="cc" /> <s:textarea name="cc"
					cols="60"></s:textarea></td>
			</tr>
			<tr>
				<td>Bcc:</td>
				<td><s:fielderror fieldName="bcc" /> <s:textarea name="bcc"
					rows="5" cols="60" ></s:textarea></td>
			</tr>
			<tr>
				<td>Subject:</td>
				<td><s:fielderror fieldName="subject" /> <s:textfield
					name="subject" size="80" maxlength="150" /></td>
			</tr>
			<tr>
				<td>Body:</td>
				<td><s:fielderror fieldName="body" /> <s:textarea name="body"
					cols="60" rows="30"></s:textarea></td>
			</tr>
			<tr>
				<td></td>
				<td><s:submit value="Send email" cssClass="submit-button" /></td>
			</tr>

		</table>
	</s:form>

</s:if>
<s:else>

You are not authorized to View this page. Click on <a
		href='<s:url action="home" namespace="/" />'>Home</a> tab to go to home page.
</s:else>


</body>
</html>